//
//  DetailFirstTableViewCell.m
//  ZYShang
//
//  Created by wangguangming on 15/7/28.
//  Copyright © 2015年 Amber. All rights reserved.
//

#import "DetailFirstTableViewCell.h"
#import "Base.h"
@implementation DetailFirstTableViewCell
- (id)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self)
        {
        [self addallviews];
        }
    return self;
}

-(void)addallviews
{
    self.oidLaber=[[UILabel alloc] init];
    self.oidLaber.frame=CGRectMake(5, 2, WIDTH*3/4-5, 40);
    
    self.oidLaber.backgroundColor=[UIColor clearColor];
    self.oidLaber.textColor=[UIColor grayColor];
    [self addSubview:self.oidLaber];
    
    
    self.typeLaber=[[UIButton alloc] init];
    [self.typeLaber setTitleColor:BLUECOLOL forState:UIControlStateNormal];
    self.typeLaber.frame=CGRectMake(WIDTH*3/4, 2, WIDTH/4-20, 40);
//    self.typeLaber.backgroundColor=[UIColor redColor];
    [self addSubview:self.typeLaber];
    
    UILabel *l=[[UILabel alloc] initWithFrame:CGRectMake(0, 40, WIDTH, 5)];
    l.backgroundColor=COLOR;
    [self addSubview:l];
    
    self.logoImage=[[UIImageView alloc] initWithFrame:CGRectMake(WIDTH-20, 14, 16, 16)];
    self.logoImage.image=[UIImage imageNamed:@"shitios.png"];
    self.logoImage.contentMode=UIViewContentModeScaleAspectFit;
    [self addSubview:self.logoImage];
    
}
- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
